package prototype.demo2;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        People xiangjiao = new People("xiangjiao");
        System.out.println("-->"+xiangjiao);

        Realizetype2 realizetype2 = new Realizetype2();
        realizetype2.setPeople(xiangjiao);
        realizetype2.setNum(11);

        Realizetype2 clone = realizetype2.clone();
        People people = clone.getPeople();
        System.out.println("-->"+people);
    }
}
